import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'

const serviceName = '/sjsk-detection-service'
const serviceName1 = '/sjsk-clinicmanage-service'
/*-----------预估-----------*/
// 列表
const estimateList = (params) => getAction(`${serviceName}/estimate/estimateList`, params)
// 导出
const estimateListExport = (params) => downFile(`${serviceName}/estimate/estimateListExport`, params, 'post')
// 提交意见
const estimateUpdate = (params) => postAction(`${serviceName}/estimate/estimateUpdate`, params)
// 添加预估
const estimateInput = (params) => postAction(`${serviceName}/estimate/estimateInput`, params)
// 预估详情
const estimateDetails = (params) => getAction(`${serviceName}/estimate/estimateDetails`, params)

/*-----------定期报告-----------*/
//已完成报告列表
const completeReportList = (params) => getAction(`${serviceName}/regularReportRecord/completeReportList`,params)
//报告记录(定期报告列表)
const sjskReportData = (params) => postAction(`${serviceName}/reportGroovy/sjskReportData/${params}`,params)
//已完成报告列表导出
const completeReportListExportXls = (params) => downFile(`${serviceName}/regularReportRecord/completeReportListExportXls`,params,'post')
// const completeReportList = (params) => getAction(`${serviceName}/regularReportRecord/completeReportList`, params)
//报告记录统计(报告记录访谈规则)
const sjskReportStatistical = (params) => getAction(`${serviceName}/regularReportRecord/sjskReportStatistical/${params}`)
//报告记录(定期报告列表)
// const sjskReportData = (params) => postAction(`${serviceName}/reportGroovy/sjskReportData/${params}`)

/*-----------报告统计-----------*/
// 尿检、毛发统计
const assessStatisticalToUrine = (params) => getAction(`${serviceName}/urine/assessStatisticalToUrine`, params)
// 访谈统计
const assessStatisticalToInterview = (params) => getAction(`${serviceName}/interviewRecord/assessStatisticalToInterview`, params)
// 定期报告统计
const assessStatisticalToReport = (params) => getAction(`${serviceName}/regularReportRecord/assessStatisticalToReport`, params)
// 其他介入情况报告
const assessStatisticalToOther = (params) => getAction(`${serviceName}/regularReportRecord/assessStatisticalToOther`, params)
// 管控情况————人员签到统计
const personSignCount = (params) => postAction(`${serviceName1}/sjsk/sp/personSignCount`, params)
export {
  estimateList,
  estimateListExport,
  estimateUpdate,
  estimateInput,
  estimateDetails,
  completeReportList,
  sjskReportData,
  completeReportListExportXls,
  sjskReportStatistical,
  // sjskReportData,
  assessStatisticalToUrine,
  assessStatisticalToInterview,
  assessStatisticalToReport,
  assessStatisticalToOther,
  personSignCount,
}
